<?php
$this->pageTitle = Yii::t('view', 'Tambah Data').' '.Yii::t('view', 'Perusahaan');
$this->breadcrumbs=array(
	Yii::t('view', 'Perusahaan') => array($this->defaultAction),
	Yii::t('view', 'Rincian Data'),
);
?>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><?php echo Yii::t('view','CHECKLIST PERSYARATAN PERMOHONAN IZIN');?></h3>
  </div>
    <div class="panel-body"> 
<?php 

$admin = $this->widget('booster.widgets.TbGridView',array(
    'id'=>Yii::app()->controller->id.'-grid',
    'type' => 'striped bordered condensed',
    'dataProvider' => $checklistAdmin,
    'responsiveTable' => true,
    'columns' => array(
        array(
		'name' => 'administrasi_id',
		'value' => '($data->administrasi) ? $data->administrasi->nama : "-"',
	),array(
		'name' => 'status_kelengkapan',
		'value' => '($data->status_kelengkapan) ? $data->status_kelengkapan : "-"',
	),array(
		'name' => 'upload_dokumen',
		'value' => '($data->upload_dokumen) ? $data->upload_dokumen : "-"',
	),array(
                'htmlOptions' => array('nowrap'=>'nowrap','class'=>'button-column'),
                'class'=>'booster.widgets.TbButtonColumn',
                'template'=>'{update}',
                'buttons'=>array(
                    'update'=>array(
                        'url'=>'array("checklistAdmin/update/".$data->id)',
                    )
                )
            ),
        ),
),true); 

$teknis = $this->widget('booster.widgets.TbGridView',array(
    'id'=>Yii::app()->controller->id.'-grid',
    'type' => 'striped bordered condensed',
    'dataProvider' => $checklistTeknis,
    'responsiveTable' => true,
    'columns' => array(
        array(
		'name' => 'teknis_id',
		'value' => '($data->teknis) ? $data->teknis->nama : "-"',
	),array(
		'name' => 'status_kelengkapan',
		'value' => '($data->status_kelengkapan) ? $data->status_kelengkapan : "-"',
	),array(
		'name' => 'upload_dokumen',
		'value' => '($data->upload_dokumen) ? $data->upload_dokumen : "-"',
	),array(
                'htmlOptions' => array('nowrap'=>'nowrap','class'=>'button-column'),
                'class'=>'booster.widgets.TbButtonColumn',
                'template'=>'{update}',
                'buttons'=>array(
                    'update'=>array(
                        'url'=>'array("checklistTeknis/update/".$data->id)',
                    )
                )
            ),
        ),
),true);

$izin = $this->widget('booster.widgets.TbGridView',array(
    'id'=>Yii::app()->controller->id.'-grid',
    'type' => 'striped bordered condensed',
    'dataProvider' => $checklistIzin,
    'responsiveTable' => true,
    'columns' => array(
        array(
		'name' => 'perizinan_id',
		'value' => '($data->perizinan) ? $data->perizinan->nama : "-"',
	),array(
		'name' => 'status_kelengkapan',
		'value' => '($data->status_kelengkapan) ? $data->status_kelengkapan : "-"',
	),array(
		'name' => 'upload_dokumen',
		'value' => '($data->upload_dokumen) ? $data->upload_dokumen : "-"',
	),array(
                'htmlOptions' => array('nowrap'=>'nowrap','class'=>'button-column'),
                'class'=>'booster.widgets.TbButtonColumn',
                'template'=>'{update}',
                'buttons'=>array(
                    'update'=>array(
                        'url'=>'array("checklistPerizinan/update/".$data->id)',
                    )
                )
            ),
        ),
),true);

$surat = $this->widget('booster.widgets.TbGridView',array(
    'id'=>Yii::app()->controller->id.'-grid',
    'type' => 'striped bordered condensed',
    'dataProvider' => $checklistSurat,
    'responsiveTable' => true,
    'columns' => array(
        array(
		'name' => 'surat_terkait_id',
		'value' => '($data->suratTerkait) ? $data->suratTerkait->nama : "-"',
	),array(
		'name' => 'status_kelengkapan',
		'value' => '($data->status_kelengkapan) ? $data->status_kelengkapan : "-"',
	),array(
		'name' => 'upload_dokumen',
		'value' => '($data->upload_dokumen) ? $data->upload_dokumen : "-"',
	),array(
                'htmlOptions' => array('nowrap'=>'nowrap','class'=>'button-column'),
                'class'=>'booster.widgets.TbButtonColumn',
                'template'=>'{update}',
                'buttons'=>array(
                    'update'=>array(
                        'url'=>'array("checklistSurat/update/".$data->id)',
                    )
                )
            ),
        ),
),true);

$evaluasi = $this->widget('booster.widgets.TbGridView',array(
    'id'=>Yii::app()->controller->id.'-grid',
    'type' => 'striped bordered condensed',
    'dataProvider' => $checklistEvaluasi,
    'responsiveTable' => true,
    'columns' => array(
        array(
		'name' => 'evaluasi_id',
		'value' => '($data->evaluasi) ? $data->evaluasi->nama : "-"',
	),array(
		'name' => 'status_kelengkapan',
		'value' => '($data->status_kelengkapan) ? $data->status_kelengkapan : "-"',
	),array(
		'name' => 'upload_dokumen',
		'value' => '($data->upload_dokumen) ? $data->upload_dokumen : "-"',
	),array(
                'htmlOptions' => array('nowrap'=>'nowrap','class'=>'button-column'),
                'class'=>'booster.widgets.TbButtonColumn',
                'template'=>'{update}',
                'buttons'=>array(
                    'update'=>array(
                        'url'=>'array("checklistEvaluasi/update/".$data->id)',
                    )
                )
            ),
        ),
),true);

$lain = $this->widget('booster.widgets.TbGridView',array(
    'id'=>Yii::app()->controller->id.'-grid',
    'type' => 'striped bordered condensed',
    'dataProvider' => $checklistLain,
    'responsiveTable' => true,
    'columns' => array(
        array(
		'name' => 'lain_lain_id',
		'value' => '($data->lainLain) ? $data->lainLain->nama : "-"',
	),array(
		'name' => 'status_kelengkapan',
		'value' => '($data->status_kelengkapan) ? $data->status_kelengkapan : "-"',
	),array(
		'name' => 'upload_dokumen',
		'value' => '($data->upload_dokumen) ? $data->upload_dokumen : "-"',
	),array(
                'htmlOptions' => array('nowrap'=>'nowrap','class'=>'button-column'),
                'class'=>'booster.widgets.TbButtonColumn',
                'template'=>'{update}',
                'buttons'=>array(
                    'update'=>array(
                        'url'=>'array("checklistLain/update/".$data->id)',
                    )
                )
            ),
        ),
),true);

$this->widget(
        'booster.widgets.TbTabs',
            array(
                'type' => 'tabs', // 'tabs' or 'pills'
                'tabs' => array(
                            array(
                                'label' => 'Persyaratan Administrasi',
                                'content' => $admin,
                                'active' => true
                            ),
                            array('label' => 'Persyaratan Teknis','content' => $teknis),
                            array('label' => 'Izin', 'content' => $izin),
                            array('label' => 'Surat Terkait', 'content' => $surat),
                            array('label' => 'Evaluasi', 'content' => $evaluasi),
                            array('label' => 'Lain-lain', 'content' => $lain),
            ),
        )
    );
?>
    </div>
</div>